<span page-title ng-model="repository">{{ 'Manage OSTree Branches for Repository:' | translate }} {{ repository.name }}</span>

<div data-block="messages">
  <div bst-alert="success" ng-hide="generationTaskId === undefined">
    <button type="button" class="close" ng-click="clearTaskId()">&times;</button>
    <p translate>
      OSTree Branch metadata generation has been initiated in the background.  Click
      <a ng-href="{{ taskUrl() }}">Here</a> to monitor the progress.
    </p>
  </div>
</div>

<div data-extend-template="layouts/partials/table.html">
  <div data-block="table">
    <table class="table table-striped table-bordered" >

      <thead>
        <tr bst-table-head>
          <th bst-table-column><span translate>Branch Name</span></th>
          <th bst-table-column><span translate>Version</span></th>
          <th bst-table-column><span translate>Commit</span></th>
        </tr>
      </thead>

      <tbody>
        <tr bst-table-row ng-repeat="item in table.rows">
          <td bst-table-cell>
            {{ item.name }}
          </td>
          <td bst-table-cell>
            {{ item.version }}
          </td>
          <td bst-table-cell>
            {{ item.commit }}
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
